from django import forms
from django.contrib.sessions.backends.db import SessionStore
from django.forms import ModelForm
from news.models import Article


# coding=utf-8



class EditorForm(ModelForm):
    class Meta:

        model = Article

        fields = ['title','categroy','author','source','digist','image']

        labels = {
            'title': "内容名称",
            'categroy': '类型',
            'author': '作者',
            'source':'来源',
            'digist':'摘要',
            'image':'封面',
        }


